package com.app.designpatternslearn.creational.builderpattern.code

import com.app.designpatternslearn.creational.builderpattern.code.burger.ChickenBurger
import com.app.designpatternslearn.creational.builderpattern.code.burger.VegBurger
import com.app.designpatternslearn.creational.builderpattern.code.drink.Coke
import com.app.designpatternslearn.creational.builderpattern.code.drink.Pepsi

fun prepareVegMeal():Meal {
    val meal = Meal()
    meal.addItem(VegBurger())

    meal.addItem(Coke())

    return meal
}

fun prepareNonVegMeal():Meal {
    val meal = Meal()
    meal.addItem(ChickenBurger())

    meal.addItem(Pepsi())

    return meal
}